An ensemble deep learning models approach using image analysis for cotton crop classification in AI-enabled smart agriculture

Background Agriculture is one of the most crucial assets of any country, as it brings prosperity by alleviating poverty, food shortages, unemployment, and economic instability. The entire process of agriculture comprises many sectors, such as crop cultivation, water irrigation, the supply chain, and many more. During the cultivation process, the plant is exposed to many challenges, among which pesticide attacks and disease in the plant are the main threats. Diseases affect yield production, which affects the country’s economy. Over the past decade, there have been significant advancements in agriculture; nevertheless, a substantial portion of crop yields continues to be compromised by diseases and pests. Early detection and prevention are crucial for successful crop management. Methods To address this, we propose a framework that utilizes state-of-the-art computer vision (CV) and artificial intelligence (AI) techniques, specifically deep learning (DL), for detecting healthy and unhealthy cotton plants. Our approach combines DL with feature extraction methods such as continuous wavelet transform (CWT) and fast Fourier transform (FFT). The detection process involved employing pre-trained models such as AlexNet, GoogLeNet, InceptionV3, and VGG-19. Implemented models performance was analysed based on metrics such as accuracy, precision, recall, F1-Score, and Confusion matrices. Moreover, the proposed framework employed ensemble learning framework which uses averaging method to fuse the classification score of individual DL model, thereby improving the overall classification accuracy. Results During the training process, the framework achieved better performance when features extracted from CWT were used as inputs to the DL model compared to features extracted from FFT. Among the learning models, GoogleNet obtained a remarkable accuracy of 93.4% and a notable F1-score of 0.953 when trained on features extracted by CWT in comparison to FFT-extracted features. It was closely followed by AlexNet and InceptionV3 with an accuracy of 93.4% and 91.8% respectively. To further improve the classification accuracy, ensemble learning framework achieved 98.4% on the features extracted from CWT as compared to feature extracted from FFT. Conclusion The results show that the features extracted as scalograms more accurately detect each plant condition using DL models, facilitating the early detection of diseases in cotton plants. This early detection leads to better yield and profit which positively affects the economy.


Introduction
Agriculture is one of the most prominent and significant industries around the globe.Major economies such as India, Russia, and China are among the major agricultural producers [1].It also attributes to countries like Somalia and Liberia's major portion of gross domestic product (GDP).This proves that the purpose of agriculture is more than just a feeding source in today's world.Various factors, including weeds, pests, and diseases, contribute to the loss of crop production [2,3].Cotton [3] is an important economic crop that contributes to the production of natural fiber.The cotton crop makes a substantial contribution by producing textiles.It allows the textile industry to expand.Plant protection [4] is crucial in cotton production, in addition to other considerations.Mostly these diseases initially affect the leaves, ultimately resulting in the death of the plant.Therefore, plant leaves play a crucial role as a source for detecting plant diseases.
Several under-developed countries are among the major cotton producers in the world, such as Pakistan; it is the world's seventh largest fabric producer, and cotton accounts for 10% of national GDP, compared to 18.9% of the nation's total agriculture sector [5].Surprisingly, the cotton crop product chain employs 50% of all industrial labor and accounts for more than 60% of total exports [6].Cotton plays a critical role in boosting the country's agricultural-based economic growth.Surprisingly, the cotton crop product chain employs 50% of all industrial labor and accounts for more than 60% of total exports [6].According to the data, Pakistan should ideally achieve cotton self-sufficiency.However, the reality is that it has been importing raw cotton in recent years.Specifically, Pakistan has not exported cotton since 2010, primarily due to the declining trend in cotton production.Pest infestation and diseases attack such as cotton leaf curl virus disease, frequent pink bollworm attacks, and whitefly infestation are some of the primary causes of crop production kg per hectare and area loss [7,8].Cotton production utilizes 25% of global insecticide and 10% of pesticide use, making it the most pesticide-intensive crop.In 2017, the average production was 753 kg per hectare, but by 2021, it had dropped to 445 kg per hectare [9].This leads to the economic collapse of both the farmer and the country.Additionally, the combination of limited resources, a large population, and an underdeveloped agricultural infrastructure has negatively impacted both the input and output of cotton in Pakistan.The tabular depiction of the production of cotton in Pakistan from 2016-2021 is depicted in Table 1 [10].Therefore, there is an urgent need for affordable agricultural technology and its widespread implementation to address these challenges and establish a positive balance between cotton input and output.The best practices to mitigate crop loss involve prevention, early detection, and the effective management of plant diseases.A quick and comprehensive diagnostic test that automatically measures the severity of the disease can help to limit losses [11].Many developing countries right now diagnose diseases through visual observation [12], which necessitates agricultural experts with extensive field experience.However, individual farmers provide 80% of the world's food [13], and most farmers struggle to correctly identify crop disease kinds.Nevertheless, the detection of disease in plants in a large farm field is a very difficult and timeconsuming task that requires expertise [14].This visual inspection is also prone to biases and optical errors.Various emerging techniques and methods have been applied to cater to this challenge, including Precision Agriculture [15] and AI [16].
Computer vision-based detection and identification is easier, more accurate, and cheaper [17].Its fundamental concept is to replicate how humans see and understand their surroundings and then translate this understanding into computer models that computers can use.Various industries have leveraged its capabilities for precise and critical functions.These sectors encompass retail and manufacturing, supply chain management, surveillance, and security, as well as agriculture.This can be accomplished using a variety of techniques and approaches, including linear regression, logistic regression, support   vector machines (SVM), random forest, clustering, Gaussian models, K-nearest neighbors (KNN), Naive Bayes (NB), and decision trees (DT).Implementing a data-driven approach enhances the reliability and costeffectiveness of farming through informed decisionmaking.This involves optimizing resource utilization, including labor and pesticides.Several image processing and machine learning algorithms have been applied in the field of agriculture, especially for the detection of diseases.The author in [18] classified the leaves of 32 species of plants using Random Forest (RF) and CNN classifier models with an accuracy of 97.3%.Li et al. [19] performed a classification of apple leaf diseases by extracting the features such as colors, shape, and texture.These features were then trained on a neural network achieving an accuracy of 92.6%.Due to the variation in the effects of diseases and their symptoms, the detection of a specific disease is a troublesome task.Cargo and Smith [20] in their work employed image-processing techniques to detect cotton disease automatically.Upon digitally capturing an image of a target, various image processing methods can be employed to extract features from it.The significance of each feature is determined by the specific patterns to be emphasized in the image.Patterns represent distinctive features within an image.The benefit of categorizing images based on feature analysis is that patterns remain stable even when the fundamental conditions are altered.The background noise in real-world environments can impact the effectiveness of the applied color model in various ways.The author in [21] transformed the electroencephalography (EEG) signal data using bandpass filtering, this resulted in better performance than the competing algorithms.The wavelet transform has been widely used in different fields to efficiently break down noisy signals and capture nonstationary features [22].They highlight a signal's frequency content over time intervals and visualise how frequencies change over time, exposing transient occurrences and frequency shifts within a signal.Dual-tree complex wavelet transformations (DT-CWT) have been proposed for tasks such as image denoising, fault identification, medical science, and recognizing EEG signals [23,24].The effectiveness of a pattern recognition system is influenced not only by the classifier but also by the depth of information from which the system can distinguish itself [25].The author in [26] employed the stepwise discriminant method and Principal Component Analysis (PCA), specifically the Bayesian discriminant method, to extract 18 characteristic parameters, encompassing color, texture, and shape information, from images of tomato leaf spots.
To extract distinctive characteristics and build a discriminant model, the PCA and Fisher discriminate method (Fisher discriminate method) were utilised.Precision was 94.71 percent and 98.32 percent, respectively.Moreover, with the advent of computer vision using Deep learning techniques and state-of-the-art image processing, the detection of the disease has become more accurate and effective [27].One major drawback of the use of deep learning models is that they require massive amounts of data for training.Currently, available datasets are either not adequate or very small which cannot be used for critical decision making.Transfer learning entails fine-tuning pre-trained Convolutional Neural Networks (CNNs) by retraining them with smaller datasets exhibiting a distribution different from the larger datasets originally used to train the network from the ground up [28].Transfer learning stands out as the most effective approach to boost the dependability of CNN classifiers in detecting plant leaf diseases.Undoubtedly, the effectiveness is evident when utilizing CNN models pre-trained on the ImageNet dataset and retraining them specifically for leaf disease detection.Consequently, the integration of deep learning with transfer learning offers an innovative solution to address the limitation of insufficient plant disease data.DL in recent years has also been used with visualization techniques for better results and a clear understanding of the disease in review.The work in [29], for example, diagnosed 13 distinct types of plant diseases using CaffeNet CNN architecture and achieved a CA of 96.30%, which was superior to earlier approaches such as SVM.Several filters were also utilised to display illness areas.The authors in [30] used the freely available Plant-Village dataset with the CNN architecture of AlexNet and GoogLeNet.The unique aspect of this research was the comparison of two well-known CNN architectures and the effect of three scenarios (color, grayscale, and segmented) on the evaluation of performance indicators.
GoogLeNet was found to have outperformed by AlexNet.At present, deep learning architectures are surpassing shallow or conventional models in terms of performance.Deep ensemble learning models combine the benefits of both deep learning models and ensemble learning, resulting in improved generalization performance for the final model.Individual models' key problems are overfitting, local minima, unknown errors, and divergence [31].
The study in [32] introduced a medical image classification model based on integrated learning.This approach involves the integration of MobileNetV2 and DenseNet 169 architectures as feature extraction backbone networks, resulting in improved performance in the medical image classification task.Against the backdrop of declining statistics in cotton production over the past few years in Pakistan.The following questions are addressed in our study: • Can we implement computer vision and artificial intelligence to address problems faced by cotton industry?• What are the capabilities and limitations of CWT and FFT in analyzing images of cotton leaves?• How effective are deep learning models when applied to detect the condition of cotton leaves, using features extracted from CWT and FFT? • Can a deep ensemble learning approach improve the accuracy of leaf condition detection?
In our study, we introduced a method for classifying healthy and unhealthy cotton plants through the application of deep learning techniques.Collection of the dataset in three phases from the cotton field located in the region under observation was done to acquire a generalized dataset.We employed transfer learning utilizing a dataset comprised of images obtained from the local field.Before feeding the images into CNN, we utilized spatial-temporal techniques, specifically CWT and FFT.Their ability to detect minor variations in leaf texture and spectral reflectance induced by diseases is enhanced by their ability to localise frequency changes in time and place.This can detect infections even before visual signs show, giving disease control a critical advantage.The classification process involved the utilization of four CNN models: AlexNet, GoogLeNet, InceptionV3, and VGG-19.An ensemble learning approach was introduced to tackle the issue of model bias and enhance classification accuracy.This involved combining the predictions of the individual CNN models.The ensemble model leverages the strengths of each base model, thereby achieving a more robust and accurate classification of healthy and unhealthy cotton plants.An evaluation was conducted, and the results demonstrated that the proposed method is effective for distinguishing between healthy and unhealthy cotton plants.Subsequently, the main contributions of the paper are also shown in Fig. 1 as follows: •

Literature review
The introduction and integration of cutting-edge technologies and techniques like AI and the Internet of Things (IoT) have elevated the standards of agriculture.Currently, sustainable and precision agriculture has garnered global attention and popularity, due to its impactful outcomes on crop yield and profitability.In this context, a hybrid model was proposed by Zhan et al. [33] to extract information relevant to the leaves using CNN and Deep Convolutional Networks.Red, green, and blue (RGB) colors identify and classify leaf disease in cotton plants using a three-channel CNN model in [34].Through a comprehensive survey of the literature, the author in [35] presents the current state-of-the-art in disease identification and classification from plant leaves using computer vision and soft computing approaches.It provides insights into the concepts, applications, and theories driving advancements in this field, with detailed discussions on various outcomes achieved by these methodologies.In [36] author uses different deep learning models of CNN with augmentation to classify the infected and healthy leaf of the citrus plant and deploy it to the platform as a service (PaaS).The dataset was divided into five class one for healthy leaves and the other 4 are of unhealthy leaves.98% precision and recall were achieved along with F1 score of 99%.The authors in [37] employed K-mean clustering for dataset segmentation and detection was done through image processing algorithms.Approximately 500 distinct images showcasing diseases were gathered from the rice field for identification and classification.
The processing was carried out using a CNN model [38].
In [39] author developed and implemented a system for tea leaf that predicts the real-time detection of diseased leaves.The models were evaluated using K-Fold crossvalidation methods.The system outperforms the DCNN and achieves excellent accuracy.Yang et al. [40] used deep learning techniques for disease detection on leaves of mango plants.Five different diseases were identified using more than 600 images for training.An accuracy of 98.6% was achieved by the authors.The authors in [41] potatoes diseases were detected early using transfer learning of deep learning models, the models were trained on a public dataset that is available on Kaggle, this study highlights the significant improvement in result by just add more layers to the original architecture, among the different models DenseNet outperformed all other models that are discussed in the paper.In [42], detecting the diseases in banana plants.Multiple experiments were performed using different training models such as color and grayscale images and data split ratios.The work in [43] performed the classification of normal and abnormal images using a neural network and achieved an accuracy of 90%.Transfer learning was used along with the Mask-RCNN model to identify diseases in cotton leaves, with a 94% accuracy.NasNetlarge, VGG-19, DenseNet-121, ResNet-50, VGG-16, inceptionresnetv2, Xception, and inceptionv3 models were all fine-tuned for categorization [44].The highest accuracy of 98.77% was attained by DenseNet-121.The author in [45] employed a genetic algorithm for the detection and classification of leaf diseases.Leveraging transfer learning with EfficientNet B7 and logistic regression the authors in [46]

Methodology
This section includes the collection of data, extracting features from the gathered data, and employing deep learning models for classification.

Dataset collection
The project is focused on the cotton fields situated in the Sindh region, encompassing areas within the observed region.Entire data-collection efforts were concentrated in the cotton fields of Sakran, a town in the Hub District of the province of Balochistan, Pakistan.Numerous visits were conducted to capture images for the dataset, facilitating comprehensive analysis.The dataset collection process was structured into three distinct phases as depicted in Fig. 3.The initial phase involved the period from May till June when the seed was sown into the soil, followed by the second phase from the last part of June and July, marked by the germination of the cotton plant.The final phase in August captured the stage when the cotton plant was fully matured and ready for cultivation.Figures 4 and 5 depict the sample of healthy and unhealthy plant.The rationale behind collecting the data in these phases was to conduct a comprehensive analysis of the plant's condition at each stage, thereby enhancing the accuracy of classification.Additionally, the collected data serves a dual purpose, facilitating not only the immediate analysis but also serving as valuable training data for future model development, enabling the training of models from scratch.

Image analysis and feature extraction
Features are extracted using CWT and FFT, using the steps depicted in Fig. 6.

Continuous wavelet transform
The 2D-CWT technique is utilized for the analysis and visualization of intricate patterns in cotton leaf images.Each original image is converted to grayscale to enhance the visibility of underlying patterns, facilitating a more concentrated examination of structural information.The visualization of scalograms offers a comprehensive illustration

Disease detection in cotton plant
Traditional Methods of frequency and scale components inherent in cotton leaf pictures as depicted in Fig. 7.The scalograms of diseased plants exhibit distinct temporal patterns, offering several advantages over raw red green blue (RGB) images.They prove valuable in capturing patterns and features at multiple scales.Their robustness in diverse environmental conditions, unaffected by lighting conditions, sets them apart.Additionally, they are computationally efficient due to dimensional reduction compared to RGB images.The scalogram can be displayed in two dimensions, with time on the horizontal axis and scale on the vertical axis.In this representation, the coefficient is color-coded using RGB values.Alternatively, the coefficient can be visualized in 3D contours, where the plot illustrates the energy associated with each coefficient.This has the potential to reveal previously unknown information about the characteristics of non-stationary processes.Scalograms find common application in diverse fields of vibration signal analysis, such as de-noising, structural analysis, ground motion analysis, fault diagnosis, damage detection, and more [72].CWT scalograms are often more suitable due to their ability to capture both spatial and temporal variations in frequency and contribute to the broader field of image analysis and pattern recognition.

Mathematical model
In the CWT pathway, input images are transformed using T CWT (X) , and the resulting wavelet representation X CWT is processed by a distinct deep learning model M DL CWT .
Fast Fourier transform (1) CWT Transformation: X CWT = T CWT (I) (2) Deep Learning Model Output : Color histograms were generated as features from individual leaf images.Subsequently, the 2D FFT was applied to each row of the feature matrix, allowing for the visualization of the FFT magnitude as shown in Fig. 8.This approach aids in the examination of frequency components within the images, offering valuable insights into their structural attributes.The resulting images were saved in a designated directory for classification purposes.

Mathematical model
In the FFT pathway, input images are transformed using T FFT (X) and the resulting frequency-domain rep- resentation X FFT is fed into a dedicated deep learning model M DL FFT .

Deep learning models
In the pursuit to classify healthy and unhealthy cotton leaves, multiple pre-trained deep learning models are trained using the collected dataset.The models utilized in this process include AlexNet, GoogLeNet, VGG-19, and InceptionV3.The training process involved using the adaptive moment estimation (Adam) optimizer function, maintaining a batch size of 32, setting the initial learning rate to 5e-5, and running for a total of 100 epochs as shown in Table 3.

GoogLeNet
GoogLeNet, commonly known as Inception v1, has a distinct and complex image classification architecture.Google introduced it in 2014, and its defining feature is the revolutionary "Inception" module [75].These modules use parallel convolutions with filter sizes of 1x1, 3x3, and 5x5, as well as max pooling, to collect information at several spatial scales.This architectural choice improves the model's recognition of complicated patterns in photos.1x1 convolutions are employed strategically to reduce dimensionality to overcome computational issues associated with large filter sizes.During training, the network includes auxiliary classifiers at intermediate layers to assist in gradient flow and mitigate potential training challenges.The auxiliary classifier is comprised of an average pooling layer (5× 5 filter, stride 3), followed by a 1 × 1 convolution (128 filters, ReLU activation), a fully connected layer (1025 outputs, ReLU activation), and dropout regularization (dropout ratio of 0.7).The architecture is completed with a softmax classifier that outputs 1000 classes, aligning with the main softmax classifier to address the vanishing gradient problem.The overall design of GoogLeNet aims to strike a balance between model complexity and computational efficiency.

VGG-19
Simonyan and Zisserman introduced VGG19 [76], an impressive Convolutional Neural Network (CNN) with 19 layers, comprising 16 convolutional layers and 3 fully connected layers.This network is specifically designed for classifying photos into 1000 categories.VGG19 was trained on the ImageNet database, containing a million pictures classified into 1000 categories.This powerful image classification technique is recognized for its utilization of a substantial number of 3x3 filters in each convolutional layer.This means that sixteen convolutional layers were used for feature extraction, followed by three layers for classification.The feature extraction layers are divided into five groups, each followed by a max-pooling layer.This model processes 224-by-224 pictures and outputs the object's label.The classification in the study is done with a pre-trained VGG19 model.

InceptionV3
InceptionV3, a profound CNN architecture designed for the classification of images and identification of objects, is an advancement of the original Inception model [77].Google introduced it in 2016 as part of its GoogLeNet family.By further enhancing the "Inception" module design, InceptionV3 builds on the success of its predecessors.A highly sophisticated network composed of numerous stacked Inception modules, each combining concurrent convolutions of varying filter sizes (1x1, 3x3, and 5x5) and pooling operations, is featured in the architecture.Batch normalization is utilized to expedite training by normalizing the inputs of each layer.The computational expense of Inception is significantly less than that of VGGNet or its more advanced counterparts [78].As a result, Inception networks can now be used in big-data applications.

Ensemble model
Ensemble learning, as discussed in reference [79], is a robust technique in machine learning that involves combining the predictions of multiple models to enhance overall performance.This is achieved by leveraging diverse models, each with its unique strengths and weaknesses, ensemble methods can produce more robust and accurate predictions compared to individual models [80].
One popular ensemble methodology is averaging [81], where the classification probabilities of each model are aggregated to compute a mean probability.This approach helps mitigate the impact of outliers and model biases,  resulting in a more balanced and reliable decision-making process.In our study, we implemented an averaging ensemble method using four pre-trained models-Goog-LeNet, AlexNet, InceptionV3, and VGG19-for classification tasks as shown in Fig. 9.The utilization of these distinct architectures, combined with the averaging approach, led to superior model performance, surpassing the classification capabilities of any individually trained model.

Algorithm 1 Deep learning models training
Algorithm 2 Deep learning models testing

Experiment, setup, and results
consists of the proposed method consisting of training and testing phases and for that purpose, MATLAB is selected as a simulation platform.Features extraction using CWT and FFT was done on the collected cotton dataset.The dataset is divided into a 70:30 split ratio for training and test sets.As mentioned above we use GoogleNet, AlexNet, VGG-16, and Inception-V3 as a deep learning model for classification tasks.Subsequently, the output layer of the DL models is configured to classify two classes instead of 1000 which is the default value.The results were evaluated based on accuracies and losses of train and test sets.Furthermore, precision, F1-score, and recall were calculated to reaffirm the obtained results.The overall implementation of training and testing is shown Algorithms 1 and 2. The corresponding statistical values are also presented in Table 4 for CWT and Table 5 for FFT.To assess the efficiency of the trained deep learning models, confusion matrices and visualized in Fig. 10 for CWT and Fig. 11 for FFT.These visual representations provide insights into the model's performance in distinguishing between healthy and unhealthy cotton leaf images.Moreover, to ensure the robustness of of our trained models and minimise the biases of the distribution of dataset K-Fold cross validation is applied, where the value of K is set to 5, the detailed analysis is shown in Tables 6 and 7.
In this comprehensive analysis employing both CWT and FFT for image Consequently, comparing the two potential techniques, the results suggest that the CWT-based approach yielded higher precision, recall, and overall F1-Score, showcasing its superior performance in identifying unhealthy cotton leaf images.
After training the models individually and consolidating the results, a deep ensemble model employing the averaging method was utilized.This enables the ensemble model to utilize prediction probabilities from each model and carry out the classification.Ensemble learning is a powerful method that fuses the classification scores of individual classifiers to enhance the overall classification score.Based on our implementation of deep learning models to detect plant conditions on individual basis, we chose to ensemble the best four models in the ensemble framework to enhance the detection capability of our proposed framework and it is evident from Tables 4 and 5 that overall performance has been improved due to the ensemble method.The outcomes demonstrate that ensembling the models enhances classification test accuracies, 98.40% and 95.10% using CWT-scalograms and FFTs, respectively as shown in Fig. 14.Furthermore, we calculated the computational statistics of implemented models in terms of processing time and memory consumption for both training and testing.We did it for both CWT and FFT, these values are listed in Tables 8 and 9 respectively.The graphical representation of the same is shown in Figs. 15 and 16.It shows that AlexNet is the fastest model for both training and prediction.Additionally, GoogLeNet exhibits the most efficient memory consumption among the models.The pie-charts in Figs. 17 and 18 present a better graphical representation of the performance of the trained models.

Conclusion and future work
In this paper, we endeavor to advance the accuracy and efficacy of disease detection in plants specifically within the domain of cotton using cutting-edge deep-learning models and visualization techniques.Our approach transforms the real-time images captured from the field using CWT and FFT before they are fed into the DL models.The process of collecting the dataset on the locally observed field was methodically structured into three specific phases.The purpose behind this approach was to conduct a thorough analysis of the plant's condition at each stage, ultimately improving classification precision.The results obtained from the evaluation show that CWT-transformed images outperform FFTtransformed images in the classification of healthy and unhealthy cotton plants.Employed DL models GoogLeNet, AlexNet, VGG-19, and InceptionV3 all attained high recognition accuracy and better F1-score, recall, and precision when trained using CWT scalograms.GoogLeNet was the superior model with a test accuracy of 93.4%.InceptionV3 had the greatest FFTtrained recognition accuracy of 98.96% and test accuracy of 90.2%.Furthermore, after training and testing each model separately, we applied an ensemble method based on their classification probabilities.The ensemble method averaged the weak individual learner models to create a stronger collective model.The ensemble model outperformed individual models with an exceptional test accuracy of 98.4% after including CWTs.Significant disease control using pre-trained models which use CWT scalograms can mitigate significant plant damage, leading to higher yields and improved harvest quality.This translates into increased agricultural earnings and a more reliable cotton supply chain.However, several obstacles remain, such as the availability of computational resources and the costs involved with adoption.Current research in the field seeks to address these limits.Overall, the findings demonstrate the effectiveness of using cutting-edge technology to improve plant disease diagnosis, opening up new paths for future study and practical applications in agricultural management and crop health monitoring.Future research efforts could include adding unmanned aerial vehicles (UAVs) for data collection and implementing lightweight models such as MobileNet for real-time

Fig. 1
Fig. 1 Flow diagram of the proposed work

Fig. 2
Fig. 2 Plant disease detection state of the art methods overview

Fig. 6 Fig. 7 Fig. 8
Fig. 6 Feature extraction from the images using CWT and FFT

Fig. 12
Fig. 12 Wavelet images classification results-Left upper corner plot shows training accuracy of all dl models, right upper corner plot shows training loss, left lower corner plot depicts test accuracy of dl models, right lower corner plot demonstrate test loss

Fig. 13 FFT
Fig. 13 FFT images classification results-left upper corner plot shows training accuracy of all dl models, right upper corner plot shows training loss, left lower corner plot depicts test accuracy of dl models, right lower corner plot demonstrate test loss

Table
Cotton production statistics, observed fields 2016-2021 [56]ciated with model bias and prediction errors.With limited computational resources, pre-trained models were employed in combination with an ensemble framework to reduce false positives and false negatives.To tackle the limitations associated with a single model, this study suggests employing ensemble learning by integrating multiple contemporary classification frameworks, including ResNet[55]and DenseNet[56].The bagging ensemble learning algorithm is applied to extract models in each training iteration, marking the first instance of utilizing ensemble learning for the identification of wheat rust.Furthermore, the comparison of our work with existing related literature is tabulated in Table2.The literature review strongly indicates that the application of computer vision techniques significantly improves yield and crop management.In our proposed framework, we leverage computer vision models through transfer learning and image analysis methods, namely CWT and FFT.To the best of our knowledge, this represents the first effort in utilizing these techniques for disease detection in plants, with a specific focus on cotton.Figure2depicts an overview of state of the art disease detection method.
[54]entation, shape features, texture features, and color attributes, were employed[48].To expand the dataset size, a data augmentation technique based on a Generative Adversarial Network (GAN) was used.The dataset was then trained in CNN architecture achieving an accuracy of 98.70[49].Investigation of heart sound was done by the authors in[50]using a time-frequency representation.They concluded that the CWT provided the best representation of the time-frequency information in heart sounds when compared to Wigner distribution, short-time Fourier transform (STFT), and CWT.The authors in[51]proposed two novel algorithms, Image By utilizing RGB images and employing data cleaning techniques to remove background and foreground vegetation, the model effectively identifies weed-density areas.The author in[54]utilized a deep ensemble neural network for detecting plant leaf diseases, aiming to address the challenges

Table 2
Comparison of related works with the proposed work

Table 3
Hyperparameters of deep learning models Ensemble learning approach to enhance detection score

Table 4
Evaluation parameters for wavelet images based classification

Table 5
Evaluation parameters for FFT images based classification

Table 6
Performance analysis using K-fold on CWT

Table 7
Performance analysis using K-fold on FFT

Table 8
Computational statistic for the applied modelsCWT − Scalograms

Table 9
Computational statistic for the applied models FFTs